<!DOCTYPE html>
<%@page import="com.tdcy.framework.util.SessionUtils"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<title>配置管理中心</title>

	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<jsp:include page="../hcommon.jsp"></jsp:include>
</head>
<script type="text/javascript">
	function getparentdata(){
		var data  = AppKit.getInvokeWindowData();
		alert(AppKit.tostring(data));
	}
	function opennew() {
		var url = '${path}/views/jsp/system/bulletinAdd.jsp';
		AppKit.openWindow("detail_modal", url, 580, 470, '新增用户', $('#grid'));
	}
	
	function opennewparam() {
		var  url = '${path}/views/jsp/system/userUpdate.jsp?showType=detail&login_user=admin';
		 AppKit.openWindow("detail_modal", url, 670, 470, '用户详情');
	}
	
	function getparent(){
		var prentwin  = AppKit.getInvokeWindow();
		var v = prentwin.$("#textinput").val();
		alert(v);
	}
	
	function setparent(){
		var prentwin  = AppKit.getInvokeWindow();
		var v = prentwin.$("#textinput2").val("13322");
	}
	
	function closeWin(){
		AppKit.closeWindow();
		
	}
	function opennew() {
		var url = '../common/showpage?page=jsp/sample/opentestwindow2';
		AppKit.openWindow(url,'新增用户', 580, 470);
	}
</script>
<body class="white-bg" style="margin-left: 5px;margin-top: 5px;" >
 <table class="table table-bordered  table-condensed dataTables-example dataTable no-footer " >
    <tbody>
      <tr>
        <td class="width-100">
        	<input id="textinput"  value="11111111">
							<input id="textinput2" >
        </td>
      </tr>
      <tr>
        <td class="width-100">
         <button class="btn btn-sm btn-primary" onclick="getparentdata()">获取父窗口的传值</button>
          <button class="btn btn-sm btn-primary" onclick="getparent()">获取父窗口控件值</button>
           <button class="btn btn-sm btn-primary" onclick="setparent()">设置父窗口空间值</button>
            <button class="btn btn-sm btn-primary" onclick="closeWin()">关闭窗口</button>
             <button class="btn btn-sm btn-primary" onclick="opennew()">弹出窗口中弹出子窗口</button>
        </td>
        
      </tr>
      </tbody>
    </table>
</body>
</html>